package com.leostadyn.stackfarm.timestatistics.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class StaffBean implements Parcelable {

    public static final Creator<StaffBean> CREATOR = new Creator<StaffBean>() {
        @Override
        public StaffBean createFromParcel(Parcel in) {
            return new StaffBean(in);
        }

        @Override
        public StaffBean[] newArray(int size) {
            return new StaffBean[size];
        }
    };

    private String name;
    private String job;
    private String id;
    private long createdTime;

    public StaffBean(String name, String job, String id, long createdTime) {
        this.name = name;
        this.job = job;
        this.id = id;
        this.createdTime = createdTime;
    }

    public StaffBean(Parcel source) {

        this.name = source.readString();
        this.job = source.readString();
        this.id = source.readString();
        this.createdTime = source.readLong();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(long createdTime) {
        this.createdTime = createdTime;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(job);
        dest.writeString(id);
        dest.writeLong(createdTime);
    }
}
